﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DevExpress.XtraCharts;

namespace iSun.Report
{
    /// <summary>
    /// 图表报表参数类
    /// </summary>
    public class ChartParams : ParamsFactory
    {
        /// <summary>
        /// 图表标题
        /// </summary>
        public Dictionary<int,string> Title { get; set; }//标题
        public Dictionary<int, int> Width { get; set; }//宽度
        public Dictionary<int, int> Height { get; set; }//高度
        public int[] SeqNum { get; set; }//序号
        public Dictionary<int, string> ChartViewType { get; set; }//图表类型
        public Dictionary<int, int> XYType { get; set; } //XY坐标轴设定

        private ChartParams(DataSet dataSource)
        {
            this.reportType = ReportType.Chart;
            this.reportDataSource = dataSource;
            this.pagerSize = System.Drawing.Printing.PaperKind.A3Extra;
        }
        /// <summary>
        /// 图表报表参数实例化
        /// </summary>
        /// <param name="dataSource">数据源</param>
        /// <returns></returns>
        public new static ChartParams GetInstance(DataSet dataSource)
        {
            return new ChartParams(dataSource);
        }
    }
}
